import Request from "../../../utils/request.js";
export default class {
  // 获取用户数据（佣金优惠券）
  static getUserDetail(params) {
    return Request({
      url: "app/user/info?accountId="+params.accountId,
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  // 获取用户信息
  static getUserInfo(params) {
    return Request({
      url: "app/user/queryUserInfo",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  // 获取个人角色名称
  static getRoleName(params) {
    return Request({
      url: "app/user/roleName",
      type: "GET",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
  // 获取预约看房数据
  static getAppointment(params) {
    return Request({
      url: "app/appointmentHouse/queryMyAppointHouse",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
} 